package org.toonWatch


class Comment {
    
    static belongsTo = [user : User, item: Item]
    
 //   int id
    String comment
    Date date
    
    static constraints = {
//        id(nullable:false, unique:true, generate: 'assigned', matches: '[0-9]{8}') //primary key
        comment(maxSize:500, blank:false, nullable:false)
        date(blank:false, nullable:false)
    }
}
